package com.yonyou.cyxdms.sysAuth.service.dto.itemPush;

import com.yonyou.cyx.function.utils.bean.BeanMapperUtil;
import com.yonyou.cyxdms.framework.bean.dto.base.DMSBaseDTO;
import com.yonyou.cyx.framework.bean.entity.base.BasePO;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yonyou.cyx.function.utils.jsonserializer.localdatetime.JsonLocalDateTimeDeserializer;
import com.yonyou.cyx.function.utils.jsonserializer.localdatetime.JsonLocalDateTimeSerializer;


/**
 * <p>
 * 
 * </p>
 *
 * @author zhangtan
 * @since 2020-11-19
 */

public class ItemPushDTO extends DMSBaseDTO implements Serializable {

    private static final long serialVersionUID = 1L;

        private Long id;
        /**
     * 业务数据主键
     */
        private String itemId;
        /**
     * 是否需要推送 0 是  1 否
     */
        private String isPush;
        /**
     * 业务代码
     */
        private String itemCode;
    
    public ItemPushDTO() {
        super();
    }




    public Long getId() {
        return id;
    }


    public void setId(Long id) {
        this.id = id;
    }



    public String getItemId() {
        return itemId;
    }


    public void setItemId(String itemId) {
        this.itemId = itemId;
    }



    public String getIsPush() {
        return isPush;
    }


    public void setIsPush(String isPush) {
        this.isPush = isPush;
    }



    public String getItemCode() {
        return itemCode;
    }


    public void setItemCode(String itemCode) {
        this.itemCode = itemCode;
    }



    @Override
    public String toString() {
        return "ItemPushDTO{" +
        "id=" + id +
        ", itemId=" + itemId +
        ", isPush=" + isPush +
        ", itemCode=" + itemCode +
        "}";
    }
    /**
     * 将DTO 转换为PO
     * //对某个对象属性进行赋值
     * //BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
     * @param poClass dto 需要转换的dto
     * @author zhangtan
     * @since 2018/7/22 0022
     */
    @Override
    public <T extends BasePO> T transDtoToPo(Class<T> poClass) {
        return super.transDtoToPo(poClass);
    }

    /**
     * 将DTO 转换为PO
     * BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
     * @param po 需要转换的对象
     * @author zhangtan
     * @since 2018/7/22 0022
     */
    public <T extends BasePO> void transDtoToPo(T po) {
        BeanMapperUtil.copyProperties(this, po, "id");
    }

}
